<!DOCTYPE html>
<html lang="en">
<head>
<%@ page language="java" import="cn.school.service.*" contentType="text/html; charset=utf-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在此处插入标题</title>
</head>
<body>
<%@include file="checkLogin.jsp" %>
<%
 long stuno=Long.parseLong(request.getParameter("stuno"));
 out.print("您要删除的学号是："+stuno);
 StudentService st=new StudentService();
 boolean ok=st.del(stuno);
 if(ok){
	 out.print("<script>alert('删除成功');location.replace('student.jsp');</script>");
 }else{
	 out.print("<script>alert('删除失败');history.back();</script>");
 }
%>
</body>
</html>